Skip to content

Release only by hand; the workflow makes the tag - #6

Merged
JKRT merged 3 commits into
masterfrom
release-by-hand
Nov 11, 2026
Merged

JKRT merged 3 commits into
masterfrom
release-by-hand

Conversation

@JKRT

@JKRT JKRT commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

A release now starts only by hand; a pushed tag starts nothing.

Actions > Release > Run workflow, inputs:

  • commit: the commit to release, on master. Empty: the head of master.
  • publish: make the tag and the release. Off (the default): a dry run.

Jobs:

  • check: resolves the commit, refuses one that is not on master, reads the version from its Cargo.toml, refuses an existing tag v<version> when publishing.
  • build (build.yml, all platforms) and sources build that commit: build.yml gets a ref input for it. Push and pull-request builds are unchanged (empty ref).
  • release: only with publish. gh release create v<version> --target <commit> makes the tag on the commit and the release with the 6 archives, the source archive and SHA256SUMS.

The inputs reach the shell only through environment variables. Tried locally on the check step: empty commit gives e2fea16 and v0.1.0; 91634f1 is accepted; nosuch and $(touch /tmp/x) are refused as "no such commit" (nothing runs); de9b5ff (squash-merged branch) is refused as not on master. actionlint clean. This pull request runs the workflow as a dry run.

README "Release" describes the run by hand.

The branch includes master 15941bf (README: Chain and Drive in OMEdit after the layout; models need no graphical annotations).

Windows fix (the dry run failed on windows-x86_64 in the test layouts): git checked the test files out with CRLF, and mocoal added lines with LF, so 13 of 14 results had mixed line endings; a CRLF file of a Windows user got them too. mocoal now uses the line ending of the file (Source::newline) for the lines it adds; the test reads files LF-normalised and also lays out a CRLF copy of each model; .gitattributes keeps text files LF. MSL 4.1.0 output unchanged.

JKRT added 3 commits November 11, 2026 14:56
A pushed tag no longer starts a release. Actions > Release > Run workflow
takes a commit on master (empty: its head) and publish (off: a dry run).
The check job reads the version from Cargo.toml of that commit, refuses
a commit not on master and an existing tag. build.yml gets a ref input,
so the build, the source archive and the release are of that commit.
gh release create --target makes the tag on it.

Assisted-by: Claude Opus 5.5
The Windows build failed the test layouts: git checked test/models and
test/expected out with CRLF, and mocoal added lines with LF (the
Diagram annotation before `end`, and the list of Diagram shapes), so 13
of 14 results had mixed line endings. A CRLF file on Windows got them
too.

- Source::newline: "\r\n" when the first line ends so, else "\n"; used
  by both insertions.
- tests: models and expected files are read LF-normalised; each case is
  also laid out from a CRLF copy and must give the LF result with CRLF.
  Without the fix this fails on the same 13 cases.
- .gitattributes: *.mo, *.rs, *.c, *.sh, *.md, *.svg with LF on every
  platform.

MSL 4.1.0 (LF files): output unchanged against master (--svg, --keep).

Assisted-by: Claude Opus 5.5
@JKRT
JKRT merged commit 38bbb7c into master Nov 11, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant